package com.keta.foundation.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.keta.foundation.entity.Module;
import com.keta.foundation.entity.Organization;
import com.keta.foundation.entity.OrganizationRole;

public interface OrganizationRoleDAO
		extends JpaRepository<OrganizationRole, Long>, JpaSpecificationExecutor<OrganizationRole> {

	List<OrganizationRole> findByOrganizationId(Long organizationId);

	List<OrganizationRole> findByRoleId(Long roleId);
}
